
private ["_aid","_caller","_damage","_repairs"];
_caller = _this select 1;
_aid = _this select 2;
_caller removeAction _aid;
if (!(local _caller)) exitWith {};
_damage = damage d_objectID2;
if (_damage > 0) then {
	_repairs = ceil((_damage * 10) / 2);
	while {(_repairs > 0) Or (!Alive Player)} do {
		player playMove "AinvPknlMstpSlayWrflDnon_medic";
		sleep 3.0;
		WaitUntil {animationState player != "AinvPknlMstpSlayWrflDnon_medic"};
		_repairs = _repairs - 1;
	};
	If (alive player and alive d_objectID2) then {
		["rep_ar", d_objectID2] call XNetCallEvent;
		sleep 1;
	};
};